const app = getApp();
Page({
	data: {
		rule_on: '',
		g_iphone: '',
	},
	onReady: function() {
		app.SystemInfo(this)
	},
	onLoad: function() {
		var This = this;
		app.request(app.apiDomain + "index.php?c=user&a=redPacketList", {}, function(res) {
			console.log(res.data);
			This.setData({
				qian: res.data.data
			})
		});
		//公告
		app.request(app.apiDomain + "index.php?c=mall&a=notice", {
			type: 'redpacket'
		}, function(res) {
			// console.log(res.data.data)
			This.setData({
				gao: res.data.data
			});
		});
	},
	gao_click: function() {
		console.log(1)
		this.setData({
			gao_on: 'on'
		})
	},
	gao_off: function() {
		this.setData({
			gao_on: ''
		})
	},
	onShareAppMessage: function() {
		return app.onShareAppMessage();
	}
})
